<?php

/**
 * socialMedia module helper.
 *
 * @package    CeeVee
 * @subpackage socialMedia
 * @author     Your name here
 * @version    SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class socialMediaGeneratorHelper extends BaseSocialMediaGeneratorHelper
{
    
    public function linkToEdit($object, $params)
    {
        
        return '<li>' . link_to(__(image_tag('icons/edit-12.png'), array(), 'sf_admin'), $this->getUrlForAction('edit'), $object, array('class' => 'ui-button-edit-12')) . '</li>';
          
    }
	
    public function linkToDelete($object, $params)
    {
        
        if ($object->isNew())
        {
            return '';
        }
        return '<li>' . link_to(__(image_tag('icons/delete-12.png'), array(), 'sf_admin'), $this->getUrlForAction('delete'), $object, array('class' => 'ui-button-delete-12', 'method' => 'delete', 'confirm' => !empty($params['confirm']) ? __($params['confirm'], array(), 'sf_admin') : $params['confirm'])) . '</li>';
      
    }
        
}
